package com.ghca.myinfo3.system.repository;

import com.ghca.myinfo3.system.entity.Department;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * Created by Administrator on 2016/12/24.
 */
@Repository
public interface DepartmentRepository extends JpaRepository<Department, Long>{

    List<Department> findByParentId(Long parentId);
}
